#ifndef __NETCLOUD_MYSQL__
#define __NETCLOUD_MYSQL__
#include<mysql/mysql.h>
typedef enum {
    
    SQL_USER = 0x01,          
    SQL_VIRTUE_FILE = 0x02,

}SQL_TABLE_NAME;

// typedef enum{
//     SQL_SELECT = 0x01,
//     SQL_INSERT = 0x02,
// }SQL_DO_TYPE;

//根据SQL表操作类型返回SQL操作字符串
int  netCloud_mysql_init(MYSQL **pthreadSql);
int  netCloud_mysql_connect(MYSQL *pthreadSql,char *host, char *user, char *password, char *db, unsigned int port); 
int  netCloud_mysql_close(MYSQL *pthreadSql);
int  netCloud_mysql_insert(MYSQL *pthreadSql,SQL_TABLE_NAME tb_name, const char* sql_insert);
int  netCloud_mysql_select(SQL_TABLE_NAME tb_name,MYSQL *pthreadSql,const char *sql_select,char *result_buffer,int buffer_size);

#endif